
from selenium import webdriver

import pytest

@pytest.fixture()
def driver():
    # 选择浏览器
    driver1 = webdriver.Edge()
    # 打开网站首页
    driver1.get('https://www.jiuxian.com/')
    # 窗口最大化
    driver1.maximize_window()

    #返回数据
    yield driver1
    #执行完关闭浏览器
    driver1.quit()
